X-Git-Url: https://git.r.bdr.sh/rbdr/super-polarity/blobdiff_plain/74c155708d85abfc2cf227c08de4f27003015b3f..0cafec445af0a97d96feb1a1daefa1486142c73f:/Super%20Polarity/Actors/Bullet.cs?ds=sidebyside diff --git a/Super Polarity/Actors/Bullet.cs b/Super Polarity/Actors/Bullet.cs index 5a7be03..d20289c 100644 --- a/Super Polarity/Actors/Bullet.cs +++ b/Super Polarity/Actors/Bullet.cs @@ -29,6 +29,7 @@ namespace SuperPolarity BoxDimensions.Y = 10; BoxDimensions.W = 10; BoxDimensions.Z = 10; + MaxVelocity = 8; InitBox(); particleEngine = ParticleEffectFactory.CreateBullet(position); } @@ -66,7 +67,14 @@ namespace SuperPolarity protected override void Die() { ActorManager.CheckOut(this); + Renderer.CheckOut(this); Parent.Children.Remove(this); } + + public override void CleanUp() + { + base.CleanUp(); + this.particleEngine = null; + } } }